<div id="top-panel">
    <div id="panel">
        <ul>
            <li><a href="<?php echo site_url("fund"); ?>" class="report_seo">List</a></li>			
        </ul>
    </div>
</div>
<script language="javascript">
	var jq = jQuery.noConflict();
	jq(document).ready(function(){
		jq(function(){
			jq( "#date" ).datepicker({
				altField: "#alternate",
				altFormat: "DD, d MM, yy"
			});
		});
	});
</script>
<div id="wrapper">
	<div id="content">
		<div id="rightnow">
			<h3 class="reallynow">New Item</h3>
			<div>
				<?php echo validation_errors(); ?>
			</div>
			<?php echo form_open('fund/save') ?>
			<input type="hidden" name="id" id="id" value="<?php echo isset($fund['id']) ? $fund['id'] : '';  ?>" />
			<table width="100%">
				<tr>
					<td>Donate</td>
					<td><input type="text" name="donate" id="donate" class="input" value="<?php echo isset($fund['donate']) ? $fund['donate'] : '';?>" /></td>
				</tr>
				<tr>
					<td>Date</td>
					<td><input type="text" name="date" id="date" class="input" value="<?php echo isset($fund['date']) ? $fund['date'] : '';?>" /></td>
				</tr>
				<tr>
					<td>Kiosk</td>
					<td>
						<select name="kiosk_id" class="input1">
						<?php if(count($kiosk)>0): ?>
						<?php foreach($kiosk as $v): ?>
							<option value="<?php echo $v['id'];?>" <?php if(isset($fund['kiosk_id']) && $v['id']==$fund['kiosk_id']):?> selected="selected" <?php endif;?>><?php echo $v['mac_address'];?></option>
						<?php endforeach; ?>
						<?php endif; ?>
						</select></td>				
				</tr>	
							
				<tr>
					<td>&nbsp;</td>
					<td><input type="submit" value="Save" >
						<input type="button" value="Cancel" class="btcancel" />
					</td>
				<tr>
			</table>
		</div>
	</div>
</div>